<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
  int y = Integer.parseInt(request.getParameter("year"));
  int m = Integer.parseInt(request.getParameter("month"));
  int d = Integer.parseInt(request.getParameter("day"));
  int currtyear =  new Date().getDate();
  int currtmonth =  new Date().getMonth();
  int currtday =  new Date().getDay();
%>
年<select>
  
  
   <%
    for(int year=2000;year<=2050;year++){
  %>
    <option  <%=y==year?"selected":"" %>><%=year%></option>
  <%
    }
    
  %>
  </select>
  月<select>
  
  
   <%
    for(int month=1;month<=12;month++){
  %>
    <option  <%=m==month?"selected":"" %>><%=month%></option>
  <%
    }
    
  %>
</select>
日<select>
  
 
   <%
    for(int day=1;day<=31;day++){
  %>
    <option  <%=d==day?"selected":"" %>><%=day%></option>
    
      <%
      } 
      
       
    %>
  
</select>
</body>
</html>